﻿using System;

namespace ContainerVariations.Common
{
    public class EmailDoor : IDoor
    {
        private readonly IDoor _door;

        public EmailDoor(IDoor door)
        {
            _door = door;
        }

        public bool Open()
        {
            bool result = _door.Open();
            Console.WriteLine("EmailDoor: Emailed door open notification.");
            return result;
        }
    }
}